package com.niuwa.p2p.dao.account;


import com.niuwa.p2p.dao.MyBatisDao;
import com.niuwa.p2p.entity.account.Account;


@MyBatisDao
public interface AccountDao {

	/**
	 * 通过账户No 选取单个账户 
	 * 
	 * @param  accountNo 账户No
	 * @return Account 账户实体
	 * @throws Exception
	 */
	public Account selectByAccountNo(long accountNo);
	
	/**
	 * 通过客户Id 选取单个账户 
	 * 
	 * @param  custId 客户Id
	 * @return Account 账户实体
	 * @throws Exception
	 */
	public Account selectByCustId(long custId);
	
	/**
	 * 更新账户
	 * 
	 * @param user 更新的账户 对象
	 * @throws Exception
	 */
	public int updateByAccountSelective(Account account) throws Exception;
	
}
